package cn.demo.dao;

import cn.demo.entity.Bill;
import cn.demo.entity.provider;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * @Author weizhongli
 * @Date 2020/3/22
 * @Version v1.0
 * @Description 账单管理持久层接口
 */
public interface BillDao {
    public int deletebill(int id);

    public int updateBill(Bill bill);

    public List<Bill> selectBillandId(int id);

    public int insertBill(Bill bill);

    public List<Bill> selectBillList(Map<String, Object> map);

    public int countBillList(@Param("productName") String productName, @Param("providerId") int providerId, @Param("isPayment") int isPayment);

    public List<provider> proList();

    public List<Bill> selectbill();
}
